import _00GraphFuc as gf
import _000GraphBasicProblem as gb

#11.2生成欧拉图，判断是否是欧拉图，若是，则求欧拉图
m,n=20,4
[V0,E0]=gf.cyclicgraphset(m)
gf.drawgraph(E0)
[V,E]=gb.replacevertex(V0,E0,n)
[d,di,do] =gf.degreeset(V0,E)
gf.drawgraph(E)
v0=0
circuit=set({})
if sum(d) %2==0:
    circuit=gb.Eulercircuit(E,v0)
print("V0,EO",V0,E0)
print("V,E",V,E)
print(d)
print(circuit)